Syntactically Recognizable Modularly Stratified Programs
نویسندگان
چکیده
We present an eecient evaluation technique for modularly stratiied programs for which the local strata level mappings are known at compile time. We present an important subclass of these programs (called EMS-programs) in which one can easily express problems such as shortest distance, company ownership, bill of materials, preferential vote counting, and matrix diagonalization. Programs written in this style are easier to understand and can be eeciently computed. Another virtue of these programs is that their modular-stratiication properties are independent of the extensional database. We also present compiler optimizations for EMS-programs.
منابع مشابه
A Syntactic Strati cation Condition Using Constraints
Stratiication conditions for logic programs aim to ensure a two-valued semantics by restricting the class of allowable programs. Previous stratiication conditions suuer from one of two problems. Some (such as modular stratiication and weak stratiication) are semantic, and cannot be recognized without examining the facts in addition to the rules of the program. Others (such as stratiication and ...
متن کاملA Syntactic Stratification Condition Using Constraints
Stratiication conditions for logic programs aim to ensure a two-valued semantics by restricting the class of allowable programs. Previous stratiication conditions suuer from one of two problems. Some (such as modular stratiication and weak stratiication) are semantic, and cannot be recognized without examining the facts in addition to the rules of the program. Others (such as stratiication and ...
متن کاملWell-Founded Ordered Search: Goal-Directed Bottom-Up Evaluation of Well-Founded Models
There have been several evaluation mechanisms proposed for computing query answers based on the well-founded semantics, for programs with negation. However, these techniques are costly; in particular, for the special case of modularly stratiied programs, Ordered Search is more eecient than the general purpose techniques. However, Ordered Search is applicable only to modularly stratiied programs...
متن کاملConstraint Strati cation in Deductive Databases
We propose a syntactic condition on deductive database programs that ensures a two-valued well-founded model. This condition, called constraint stratiication, is signiicantly more general than previous syntactic conditions such as stratiication and local stratiication. Modular stratiication has been proposed as a semantic (i.e., nonsyntactic) condition for ensuring a two-valued well-founded mod...
متن کاملConstraint Stratification in Deductive Databases
We propose a syntactic condition on deductive database programs that ensures a two-valued well-founded model. This condition, called constraint stratiication, is signiicantly more general than previous syntactic conditions such as stratiication and local stratiication. Modular stratiication has been proposed as a semantic (i.e., nonsyntactic) condition for ensuring a two-valued well-founded mod...
متن کامل